home *** CD-ROM | disk | FTP | other *** search
- .TH COERCE
- 6 "IRIT Version 6.0"
- .SH NAME
- COERCE
-
-
-
- AnyType COERCE( AnyType Object, ConstantType NewType )
-
- Provides a coercion mechanism between different objects or object types.
- PointType, VectorType, PlaneType, CtlPtType can be all coerced to each
- other by using the NewType of POINT_TYPE, VECTOR_TYPE, PLANE_TYPE,
- or one of E1-E5, P1-P5 (CtlPtType). Similarly, CurveType, SurfaceType,
- TrimSrfType, and TrivarType can all be coerced to hold different
- CtlPtType of control points, or even different open end conditions from
- KV_PERIODIC to KV_FLOAT to KV_OPEN.
- If a scalar (E1 or P1) curve is coerced to E2 or P2 curve or
- a scalar (E1 or P1) surface is coerced to E3 or P3 surface, the Y (YZ)
- coordinate(s) is (are) updated to hold the parametric domain of the curve
- (surface).
-
- Example:
-
- CrvE2 = COERCE( Crv, E2 );
-
- coerce Crv to a new curve that will have an E2 CtlPtType control
- points. Coerction of a projective curve (P1-P5) to a Euclidean curve
- (E1-E5) does not preseve the shape of the curve.
-